package com.lznAdmin.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lznAdmin.system.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    @Select("select permission_id from sys_role_permission where role_id = #{id}")
    List<Long> selectPermissionIdByRoleId(Long id);

    // IPage<SysRole> selectPage(Page<SysRole> page, @Param("sysRole") SysRole sysRole);
}
